from slots_demo.models import Page

def current(request):
    page = Page.objects.get(pk=1)
    current_stuff = page.current
    context = { 'page' : page,
                'style' : current_stuff['Style'],
                'sponsor' : current_stuff['Sponsor']
              }
    return render_to_response("slots_demo.html",context)

def current_for(request):
    page = Page.objects.get(pk=1)
    context = { 'page' : page,
                'style' : page.current_for('Style'),
                'sponsor' : page.current_for('Sponsor')
              }
    return render_to_response("slots_demo.html",context)
